﻿#pragma once
#include "EditEntry.h"
#include <QShortcut>

class ShortcutEditEntry : public EditEntry {
    Q_OBJECT
public:
    explicit ShortcutEditEntry(QWidget *parent = nullptr);
    ~ShortcutEditEntry();
    void setValue(const QKeySequence &value);
    QKeySequence value() const;

signals:
    void valueChanged(const QShortcut &value);

private:
    void initUi();

private:
    struct ShortcutEditEntryPrivate;
    QScopedPointer<ShortcutEditEntryPrivate> p;
};
